package com.aspose.cells;

class zasj {
   protected zaic a = null;
   protected zaic b = null;
   protected zaic c = null;
   protected zaic d;
   protected com.aspose.cells.b.a.b.zn e;
   protected Color f = Color.fromArgb(0, 0, 0);
   protected com.aspose.cells.b.a.b.za g = null;
   protected boolean h = false;
   protected boolean i = false;
   protected boolean j;
   protected int k = 2;
   protected boolean l;

   public void a(Color var1, Color var2, int var3) {
      zbss var4 = new zbss();
      var4.a(var1, var2, var3);
      this.a = var4;
      zavl var5 = new zavl();
      var5.a(var1, var2, var3);
      this.d = var5;
   }

   public void a(com.aspose.cells.b.a.b.zc var1, Color var2, int var3) {
      zbss var4 = new zbss();
      var4.a(var1, var2, var3);
      this.a = var4;
      zavl var5 = new zavl();
      var5.a(var1, var2, var3);
      this.d = var5;
   }

   public void a() {
      this.c = null;
      this.b = null;
   }

   public void a(boolean var1) {
      this.h = var1;
   }

   public void a(Color var1, int var2, com.aspose.cells.b.a.b.zn var3) {
      zuv var4 = new zuv();
      var4.a(Color.fromArgb(0, 0, 0, 0), var1, var2, var3.a(), var3.b());
      this.f = var1;
      zuv var5 = new zuv();
      var5.a(Color.fromArgb(var1.getA() & 255, 255, 255), Color.fromArgb(0, 0, 0, 0), 0, var3.a(), var3.b());
      this.c = var5;
      this.e = var3;
      this.b = var4;
      this.l = true;
      this.i = false;
      this.k = var2;
   }

   public boolean a(zn var1, com.aspose.cells.b.a.b.zh var2, int var3, int var4, String var5, com.aspose.cells.b.a.b.zn var6, com.aspose.cells.b.a.b.zv var7) {
      if (this.h && this.b != null) {
         this.b.a(var1, var2, var3, var4, var5, new com.aspose.cells.b.a.b.zn(var6.a() + this.e.a(), var6.b() + this.e.b()), var7);
      }

      if (this.j) {
         this.d.a(var1, var2, var3, var4, var5, new com.aspose.cells.b.a.b.zn(var6.a() + this.e.a(), var6.b() + this.e.b()), var7);
      }

      return this.a != null ? this.a.a(var1, var2, var3, var4, var5, var6, var7) : false;
   }

   public boolean a(zn var1, com.aspose.cells.b.a.b.zh var2, int var3, int var4, String var5, com.aspose.cells.b.a.b.zn var6, com.aspose.cells.b.a.b.zv var7, float[] var8, float[] var9) {
      float var10 = 0.0F;
      float var11 = 0.0F;
      float[] var12 = new float[]{var10};
      float[] var13 = new float[]{var11};
      boolean var14 = this.a.a(var1, var2, var3, var4, var5, var6, var7, var12, var13);
      var10 = var12[0];
      var11 = var13[0];
      if (!var14) {
         return false;
      } else {
         float var15 = 0.0F;
         float var16 = 0.0F;
         if (this.h) {
            float[] var17 = new float[]{var15};
            float[] var18 = new float[]{var16};
            var14 = this.b.a(var1, var2, var3, var4, var5, var6, var7, var17, var18);
            var15 = var17[0];
            var16 = var18[0];
            if (!var14) {
               return false;
            }

            float var19 = 0.0F;
            float var20 = 0.0F;
            float[] var21 = new float[]{var19};
            float[] var22 = new float[]{var20};
            var14 = zabw.a(var1, (float)this.e.a(), (float)this.e.b(), var21, var22);
            var19 = var21[0];
            var20 = var22[0];
            if (var14) {
               var15 += var19;
               var16 += var20;
            }
         }

         if (var10 <= var15 && var11 <= var16) {
            var8[0] = var15;
            var9[0] = var16;
         } else {
            var8[0] = var10;
            var9[0] = var11;
         }

         return true;
      }
   }
}
